package com.tupu.entity.dispatch;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 调度日志-计划操作票-操作票内容 实体类
 *
 * @author by
 */
@Data
public class DispatchOperTicketDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    //操作票内容表主键id
    private String detailId;

    //开票人
    @NotEmpty(message = "开票人不能为空")
    private String drawer;

    //开票时间
    @NotEmpty(message = "开票时间不能为空")
    private String ticketTime;

    //票号
    @NotEmpty(message = "票号不能为空")
    private String ticketNum;

    //票状态（0表示未审核，1表示已审核）
    private Integer ticketState;

    //操作任务
    @NotEmpty(message = "操作任务不能为空")
    private String operTask;

    //审核人
    private String reviewer;

    //审核时间
    private String examineTime;

    //开始执行时间
    private String performStartTime;

    //结束执行时间
    private String performEndTime;

    private String ticketId;
    @Valid
    @NotEmpty
    private List<DispatchOperTicketPerformMsg> msg;
}
